<!--{eval $_TPL['nosidebar']=1;}-->
<!--{template header}-->
<div>
<!--{if $narrowlist || $widelist}-->
<script type="text/javascript" src="source/script_swfobject.js"></script>
<!--{/if}-->

<div id="space_page">

	<div id="content">
			
		<h3 id="spaceindex_name">
		<!--{if $_SCONFIG[realname]}-->
			<!--{if $space[name]}--><a href="space.php?uid=$space[uid]">$space[name]</a><!--{else}-->未填写实名<!--{/if}-->
			&nbsp;<em>(用户名: $space[username])</em>
		<!--{else}-->
			<a href="space.php?uid=$space[uid]">$space[username]</a>
			<!--{if $space[name]}-->&nbsp;<em>(姓名: $space[name])</em><!--{/if}-->
		<!--{/if}-->

		<!--{if $_SCONFIG[realname]}-->
			<!--{if $space[namestatus]}-->
				&nbsp;
			<!--{else}-->
				&nbsp; <span class="gray">实名未认证</span>
			<!--{/if}-->
		<!--{/if}-->
		</h3>


		<div id="spaceindex_note" style="height:70px;">
			<a href="cp.php?ac=attention&op=atuser&auid=$space[uid]" class="a_share" id="a_share" onclick="ajaxmenu(event, this.id, 1)">关注</a>
			<!--<a href="rss.php?uid=$space[uid]" id="i_rss" title="订阅 RSS">订阅</a>-->
			<ul class="note_list">
				<li>已有 $space[viewnum] 人次访问, $space[credit] 个积分, $space[experience] 个经验</li>
				<li>用户组别：<a href="cp.php?ac=credit&op=usergroup">{$_SGLOBAL[grouptitle][$space[groupid]][grouptitle]}</a> <!--{eval g_icon($space[groupid]);}--></li>
				<li style="float:left;width:300px;">主页地址：<a href="$space[domainurl]" onclick="javascript:setCopy('$space[domainurl]');return false;" class="spacelink domainurl">$space[domainurl]</a></li>
				<!--{if $company}-->
				<li>他加入了： <a href="space.php?do=mtag&tagid=$company[tagid]" class="spacelink domainurl">$company[tagname]</a><!--{if $company[status]=='0'}--><span style="color:red">（该公司未通过审核）</span><!--{else}-->（该公司已通过审核）<!--{/if}--></li>
				<!--{/if}-->
			</ul>

		</div>

		<div id="maincontent">
			<div id="space_info">
				<h3 class="feed_header">
					<!--{if $space[self]}-->
					<a href="cp.php?ac=profile" style="color:#FFF;" class="r_option">修改</a>
					<!--{/if}-->
					基本资料
				</h3>
				<ul class="spacemenu_list">
					<li><em>创建:</em><!--{date('Y-m-d',$space[dateline],1)}--></li>
					<li><em>登录:</em><!--{if $space[lastlogin]}--><!--{date('Y-m-d',$space[lastlogin],1)}--><!--{/if}--></li>
					<!--{if $isonline}-->
					<li><em>活跃:</em>$isonline (当前在线)</li>
					<!--{/if}-->
				<!--{if $space[sex]}-->
					<li><em>性别:</em>$space[sex]</li>
				<!--{/if}-->
				<!--{if $space[birth]}-->
					<li><em>生日:</em>$space[birth]</li>
				<!--{/if}-->
				<!--{if $space[residecity]}-->
					<li><em>居住:</em>$space[residecity]</li>
				<!--{/if}-->
				<!--{if $space[birthcity]}-->
					<li><em>家乡:</em>$space[birthcity]</li>
				<!--{/if}-->
				<!--{if $space[mobile]}-->
					<li><em>手机:</em>$space[mobile]</li>
				<!--{/if}-->
				<!--{if $space[qq]}-->
					<li><em>QQ:</em>$space[qq]</li>
				<!--{/if}-->
				<!--{if $space[msn]}-->
					<li><em>MSN:</em>$space[msn]</li>
				<!--{/if}-->
				<!--{if $space[company]}-->
					<li><em>工作单位:</em>$space[company]</li>
				<!--{/if}-->
				<!--{if $space[dept_name]}-->
					<li><em>所在部门:</em>$space[dept_name]</li>
				<!--{/if}-->
				</ul>
			</div>

			<!--{if $edu_list}-->
			<div id="space_feed" class="feed">
				<h3 class="feed_header">
					<!--{if $space[self]}-->
					<a href="cp.php?ac=profile&op=edu" style="color:#FFF;" class="r_option">修改</a>
					<!--{/if}-->
					<span class="entry-title">教育状况</span>
				</h3>
				<div class="box_content">
					<table cellspacing="8" cellpadding="8" width="100%">
						<tr style="background: #EAEAEA;">
							<td width="20%" height="36px" align="center"><strong>入学年份</strong></th>
							<td width="40%" height="36px" align="center"><strong>就读院校</strong></th>
							<td width="40%" height="36px" align="center"><strong>班级或院系</strong></th>
						</tr>
						<!--{loop $edu_list $value}-->
						<tr>
							<td width="20%" height="36px" align="center">$value[startyear]</td>
							<td width="40%" height="36px" align="center">$value[title]</td>
							<td width="40%" height="36px" align="center">$value[subtitle]</td>
						</tr>
						<!--{/loop}-->
					</table>
					</ul>
				</div>
			</div>
			<!--{/if}-->
			<!--{if $work_list}-->
			<div id="space_feed" class="feed">
				<h3 class="feed_header">
					<!--{if $space[self]}-->
					<a href="cp.php?ac=profile&op=work" style="color:#FFF;" class="r_option">修改</a>
					<!--{/if}-->
					<span class="entry-title">工作经历</span>
				</h3>
				<div class="box_content">
					<table cellspacing="8" cellpadding="8" width="100%">
						<tr style="background: #EAEAEA;">
							<td width="40%" height="36px" align="center"><strong>时间</strong></th>
							<td width="30%" height="36px" align="center"><strong>公司</strong></th>
							<td width="30%" height="36px" align="center"><strong>部门</strong></th>
						</tr>
						<!--{loop $work_list $value}-->
						<tr>
							<td width="40%" height="36px" align="center">		{$value[startyear]}年{$value[startmonth]}月 ~ 
		<!--{if $value[endyear]}-->{$value[endyear]}年<!--{/if}-->
		<!--{if $value[endmonth]}-->{$value[endmonth]}月<!--{/if}-->
		<!--{if !$value[endyear] && !$value[endmonth]}-->现在<!--{/if}--></td>
							<td width="30%" height="36px" align="center">$value[title]</td>
							<td width="30%" height="36px" align="center">$value[subtitle]</td>
						</tr>
						<!--{/loop}-->
					</table>
					</ul>
				</div>
			</div>
			<!--{/if}-->


		</div>

		<div id="comment" class="comments_list">
			<h3 class="feed_header">
				<a href="space.php?uid=$space[uid]&do=wall&view=me" class="r_option">全部</a>
				留言板
			</h3>

			<div class="box">
				<form action="cp.php?ac=comment" id="quick_commentform_{$space[uid]}" name="quick_commentform_{$space[uid]}" method="post" style="padding:0 0 0 5px;">
					<br />
					<textarea name="message" id="comment_message" rows="4" cols="60" style="width:98%;" onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea><br>
					<input type="hidden" name="refer" value="space.php?uid=$space[uid]" />
					<input type="hidden" name="id" value="$space[uid]" />
					<input type="hidden" name="idtype" value="uid" />
					<input type="hidden" name="commentsubmit" value="true" />
					<input type="button" id="commentsubmit_btn" name="commentsubmit_btn" class="submit" value="留言" onclick="ajaxpost('quick_commentform_{$space[uid]}', 'wall_add')" />
					<input type="button" style="float:right;" id="editface" name="editface" class="submit" value="添加表情" onclick="showFace(this.id, 'comment_message');return false;" />
					<span id="__quick_commentform_{$space[uid]}"></span>
					<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
				</form>
			</div>

			<div class="box_content">
				<ul class="post_list a_list justify_list" id="comment_ul">
				<!--{loop $walllist $value}-->
					<!--{template space_comment_li}-->
				<!--{/loop}-->
				</ul>
				<!--{if $walllist}-->
				<p class="r_option" style="padding:5px 0 10px 0;"><a href="space.php?uid=$space[uid]&do=wall&view=me">&raquo; 更多留言</a></p>
				<!--{/if}-->
			</div>
		</div>
	</div>
	<div id="ubar">
		<div id="space_avatar">
			<div class="magicavatar"><div class="ar_r_t"><div class="ar_l_t"><div class="ar_r_b"><div class="ar_l_b"><!--{avatar($space[uid],big)}--></div></div></div></div></div>
			<div class="borderbox">
				<ul class="spacemenu_list" style="width:100%; overflow:hidden;">
			<!--{if $space[self]}-->
				<li><a href="cp.php?ac=avatar">我的头像</a></li>
				<li><a href="cp.php?ac=profile">个人资料</a></li>
				<li><a href="cp.php?ac=credit">我的积分</a></li>
				<li><a href="space.php?do=friend">我的好友</a></li>
				<!--{if $_SCONFIG[sendmailday]}-->
				<li><a href="cp.php?ac=sendmail">邮件提醒</a></li>
				<!--{/if}-->
				<li><a href="cp.php?ac=privacy">隐私筛选</a></li>
			<!--{else}-->
				<!--{if !$space['isfriend']}-->
				<li><a href="cp.php?ac=friend&op=add&uid=$space[uid]" id="a_friend_li" onclick="ajaxmenu(event, this.id, 1)">加为好友</a></li>
				<!--{/if}-->
				<li><a href="#comment">给我留言</a></li>
				<li><a href="space.php?uid=$space[uid]&do=friend">TA的好友</a></li>
				<li><a href="cp.php?ac=pm&uid=$space[uid]" id="a_pm" onclick="ajaxmenu(event, this.id, 1)">发送消息</a></li>
				<!--{if $space['isfriend']}-->
				<li><a href="cp.php?ac=friend&op=ignore&uid=$space[uid]" id="a_ignore" onclick="ajaxmenu(event, this.id)">解除好友</a></li>
				<!--{/if}-->
				<!--{if checkperm('managename')||checkperm('managespacegroup')||checkperm('managespaceinfo')||checkperm('managespacecredit')||checkperm('managespacenote')}-->
				<li><a href="admincp.php?ac=space&op=manage&uid=$space[uid]" id="a_manage">管理用户</a></li>
				<!--{/if}-->
			<!--{/if}-->
				</ul>
			</div>
		</div>
		<!--{if !$space['isfriend']}-->
		<div class="borderbox">
			<p style="padding-bottom:10px;">如果您认识{$_SN[$space[uid]]}，可以给TA留个言，或者添加为好友。<br />成为好友后，您就可以第一时间关注到TA的更新动态。</p>
			<a href="cp.php?ac=friend&op=add&uid=$space[uid]" id="a_friend_notice" onclick="ajaxmenu(event, this.id, 1)" class="submit">加为好友</a></p>
		</div><br>
		<!--{/if}-->

		<!--{if $bloglist}-->
		<div class="borderbox">

			<div id="space_blog" class="feed">
				<h3 class="feed_header">
					<a href="space.php?uid=$space[uid]&do=blog&view=me" style="color:#fff;" class="r_option">全部</a>
					日志
				</h3>
				<ul class="line_list">
				<!--{loop $bloglist $value}-->
					<li>
						
						<h4>
							<span class="gray r_option"><!--{date('m-d H:i',$value[dateline],1)}--></span>
							<a href="space.php?uid=$space[uid]&do=blog&id=$value[blogid]" target="_blank">$value[subject]</a>
						</h4>
						<div class="detail">
							$value[message]
						</div>
					</li>
				<!--{/loop}-->
				</ul>
			</div>

		</div>
		<!--{/if}-->
	</div>
</div>

<script>
function getindex(type) {
	var plus = '';
	if(type == 'event') plus = '&type=self';
	ajaxget('space.php?uid=$space[uid]&do='+type+'&view=me'+plus+'&ajaxdiv=maincontent', 'maincontent');
}
</script>
</div>

<!--{template footer}-->